﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <ul><li>key:<input id="Txtkey" type="text" /></li>
    <li>
        <input id="Button1" type="button" value="button" onclick="getShops()" /></li>
    </ul>
    
    </div>
    <div id="result"></div>
    </form>
</body>
</html>
<script type="text/javascript">
function getShops()
{
    var res = _Default.GetShops($("Txtkey").value,440100).value;
    var html="";
    if (res)
    {
        for(var i=0;i<res.length;i++)
        {html+="Id=" + res[i].Sid.toString() + ";Name=" + res[i].ShopName + "<br/>";}
        $("result").innerHTML=html;
    }
}

function $(key)
{return document.getElementById(key);}
</script>